package com.hospital.workstation.service;

import com.hospital.workstation.domain.MedicationAdvisory;
import com.hospital.workstation.domain.vo.MedicationAdvisoryVo;
import com.hospital.workstation.domain.bo.MedicationAdvisoryBo;
import com.hospital.common.core.page.TableDataInfo;
import com.hospital.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 用药咨询Service接口
 *
 * @author whb
 * @date 2023-02-21
 */
public interface IMedicationAdvisoryService {

    /**
     * 查询用药咨询
     */
    MedicationAdvisoryVo queryById(Long id);

    /**
     * 查询用药咨询列表
     */
    TableDataInfo<MedicationAdvisoryVo> queryPageList(MedicationAdvisoryBo bo, PageQuery pageQuery);

    /**
     * 查询用药咨询列表
     */
    List<MedicationAdvisoryVo> queryList(MedicationAdvisoryBo bo);

    /**
     * 新增用药咨询
     */
    Boolean insertByBo(MedicationAdvisoryBo bo);

    /**
     * 修改用药咨询
     */
    Boolean updateByBo(MedicationAdvisoryBo bo);

    /**
     * 校验并批量删除用药咨询信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
